package com.db;



import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DatabaseHelper extends SQLiteOpenHelper
{
  public DatabaseHelper(Context paramContext, String paramString, SQLiteDatabase.CursorFactory paramCursorFactory, int paramInt)
  {
    super(paramContext, paramString, null, paramInt);
  }

  @Override
  public void onCreate(SQLiteDatabase paramSQLiteDatabase)
  {
//    paramSQLiteDatabase.execSQL("create table userInfo(userid integer primary key autoincrement, userName  varchar(50),userPwd varchar(50) , userEmail varchar(50)  , userSex char(1), userHeight varchar(10) ,userWeight varchar(10) ,userBirth date)");
//    paramSQLiteDatabase.execSQL("insert into userInfo(userName ,userPwd ,userEmail,userSex,userHeight ,userWeight ,userBirth) values ('xiawei','123456','xiawei0525@163.com','1','172','68.4','1989-03-24')");
    paramSQLiteDatabase.execSQL("create table spygInfo(userid integer primary key autoincrement , userName varchar(50) )");
  }
  

@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
	// TODO Auto-generated method stub
	
}

  
  
  
}